<?php
namespace app\admin\Validate;
use think\Validate;

class Article extends Validate{
    protected $rule=[
        'art_name'=>'require|max:20',
        'art_content'=>'require',
        'art_type'=>'require',
        'art_thumb'=>'require'
    ];
    protected $message=[
        'art_name.require'=>'请输入咨询名称',
        'art_name.max'=>'咨询名称不能超过20个字符',
        'art_content'=>'请输入咨询内容',
        'art_type'=>'请选择咨询种类',
        'art_thumb'=>'请上传缩略图'
    ];
}